package com.sdp.right.control;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sdp.core.bizc.db.Query;
import com.sdp.core.bizc.vo.DataCenter;
import com.sdp.core.bizc.vo.Result;
import com.sdp.right.db.sys_flow_instance.service.ISysFlowInstanceService;
import com.sdp.right.entity.SysFlowInstance;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zsp
 * @since 2024-07-17
 */
@RestController
@RequestMapping("/SysFlowInstanceController")
public class SysFlowInstanceController {

	@Autowired
	private ISysFlowInstanceService iSysFlowInstanceService;
	
	@Autowired
	private Query query;
	
	@PostMapping(value = "/page")
	public Result<?> page(@RequestBody DataCenter dataCenter) {
		return Result.ok(query.page(iSysFlowInstanceService, SysFlowInstance.class, dataCenter));
	}
	
}

